package com.xpoint.backend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xpoint.backend.common.R;
import com.xpoint.backend.dto.DishDto;
import com.xpoint.backend.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    R<Page> findPage(Long page, Long pageSize, String name);

    R<String> addDish(DishDto dishDto);

    R<String> updateDishStatus(Integer status, List<Long> id);

    R<String> deleteBatchByIds(List<Long> id);

    R<DishDto> findByid(Long id);

    R<String> updateDish(DishDto dishDto);

    R<List<DishDto>> findCategoryById(Dish dish);
}
